<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<c:url value="/resource/css/menu.css"/>" />
<script type="text/javascript" src="<c:url value="/resource/script/menu.js"/>"></script>
</head>
<body>
	<div class="menu-wrapper">
	<h1 class="title"><c:out value="${currentCategory.name}" /></h1>
	<hr>
	<div class="menu">
		<ul>
			<c:forEach items="${articles}" var="article">
				<li style="position: relative;">
					<a href="<c:url value="/articles/${currentCategory.id}/${article.id}"/>"><c:out value="${article.title}"/></a>
					<c:if test="${login != null}">
						<a class="delete" data-id="${article.id}" href="javascript:void(0);">删除</a>
					</c:if>
				</li>
			</c:forEach>
		</ul>
	</div>
	</div>
</body>
</html>